﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProductAnswer.aspx.cs" Inherits="V5_EShop.Admin.ProductExpand.Admin_ProductAnswer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>产品回答</title>
</head>
<%=V5.Load.LoadAdminHeader(this) %>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
        <tr>
            <td class="header">
                商品问答管理
            </td>
        </tr>
        <tr>
            <td>
                <a href="Admin_AskAnswer.aspx">返回列表</a>
            </td>
        </tr>
    </table>
    <form id="form1" runat="server">
    <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                CssClass="tablelist rowlist overlist" OnRowCommand="gvList_RowCommand">
                <Columns>
                    <asp:BoundField DataField="ID" HeaderText="ID">
                        <ItemStyle Width="30px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="产品名称">
                        <ItemTemplate>
                            <%# Get_Product(Eval("ProductID")).ProductName %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="AnswerContent" HeaderText="回答内容" />
                    <asp:TemplateField HeaderText="用户">
                        <ItemTemplate>
                            <%# Get_User(Eval("MemberID")).UserName %>
                        </ItemTemplate>
                        <ItemStyle Width="50px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="状态">
                        <ItemTemplate>
                            <%#Eval("Passed").ToString()=="1"?"<font color=green>通过</font>":"<font color=red>未通过</font>" %>
                        </ItemTemplate>
                        <ItemStyle Width="60px" />
                    </asp:TemplateField>
                    <asp:BoundField DataField="GetIP" HeaderText="IP">
                        <ItemStyle Width="120px" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton3" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="passed">通过</asp:LinkButton>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Bind("ID") %>'
                                CommandName="del" OnClientClick="return confirm('你确定要删除吗?')">删除</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle Width="150px" />
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td>
                        <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                            FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                            OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                            PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                            TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table cellpadding="0" cellspacing="0" class="tablelist">
                <tr>
                    <td colspan="2">
                        <asp:Label ID="lblTitle" runat="server" Text="回答"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td style="width: 15%;">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </asp:View>
    </asp:MultiView>
    </form>
</body>
</html>
